package com.zim.ta_service.base.config;

import cn.hutool.core.util.StrUtil;
import com.ejlchina.searcher.implement.DefaultDbMapping;

/**
 * author: alabimofa <br>
 * date: 2022/6/24 16:59 <br>
 */
public class SearchBeanDbMapping extends DefaultDbMapping {

	@Override
	protected String toTableName(Class<?> beanClass) {
		String tableName = super.toTableName(beanClass);
		return StrUtil.removeSuffix(tableName, "_sbean");
	}
}
